<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="label.title" /></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 <script src="js/Account.js" type="text/javascript"></script>
</head>
<body>
<h2>
  <spring:message code="label.title" />
 </h2> 
 <h3><spring:message code="label.account.title" /></h3>
 <div>
   <a href="index.jsp">home</a> > administracion
 </div>
 <div>
     <a href="addAccount.htm"><spring:message code="label.account.addaccount" /></a> |
     <a href="#" class="controldelete"><spring:message code="label.account.deleteaccount" /></a>
 </div> 
 <div>
   <table>
      <tr>
         <td>           
			    <table class="data" border="1">
			     <tr>
			      <th>Check</th>
			      <th><spring:message code="label.account.numero" /></th>
			      <th><spring:message code="label.account.nombre" /></th>
			      <th><spring:message code="label.account.estado" /></th>
			      <th><spring:message code="label.account.balance" /></th>
			      <th>Opciones</th>
			     </tr>
			     <c:if test="${!empty AccountList}">
				     <c:forEach items="${AccountList}" var="cuenta">
				      <tr id="${cuenta.id}">
				       <td><input type="checkbox" name="option" value="${cuenta.id}"></td>
				       <td>${cuenta.numero}</td>
				       <td>${cuenta.nombre}</td>
				       <td>${cuenta.estado}</td>
				       <td>${cuenta.balance}</td>
				       <td><a href="EditAccount.htm?Id_Account=${cuenta.id}">Editar</a></td>			 
				      </tr>
				     </c:forEach>
			     </c:if>
			     <c:if test="${empty AccountList}">
			        <tr>
			           <td colspan="6">
			               <spring:message code="label.account.sindatos" />
			           </td>
			        </tr>
			     </c:if>
			    </table>
			 
         </td>
      </tr>
   </table>
 </div>
</body>
</html>